package com.lovo.psc.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;


@FeignClient(name = "psc")
public interface IPscUserService {

    /**
     * 根据供应商编号修改状态
     * @param supplierNumber 经销商编号
     * @param info 状态 1,审核通过，或者写入失败原因
     */
    @PutMapping("user/upDataSupplierState/{supplierNumber}/{info}")
    public void upDataSupplierState(@PathVariable("supplierNumber") String supplierNumber, @PathVariable("info") String info);

    /**
     * 根据标书标号选择中标
     * @param BookNumber 标书编号
     */
    @PutMapping("SupplierPurchaseController/upDateNumStateBy/{BookNumber}/{supplierNumber}")
    public void upDateNumStateBy(@PathVariable("BookNumber") Integer BookNumber,@PathVariable("supplierNumber") Integer supplierNumber);

    @PutMapping("supplyOrder/updateState/{supplyCode}/{supplyState}")
    public void updateState(@PathVariable("supplyCode") String supplyCode,
                            @PathVariable("supplyState") String supplyState);

    @PutMapping("SupplierPurchaseController/del/{number}")
    public void del(@PathVariable("number") Integer BookNumber);
}
